package com.manager.commons.basemanage.service;

import java.util.List;

import com.manager.BaseService;
import com.manager.commons.basemanage.dao.BaseDataDao;
import com.manager.commons.basemanage.entity.BaseDataList;

/**
 * 
 *Copyrights 1997-2008 西安协同时光软件有限公司
 *                       
 *Filename:BaseDataService.java
 *
 *Description:BaseDataService的业务方法,根据BaseData获取BaseDataList的列表
 *
 *Version:V0.1
 *
 *Author: peigen
 *       
 *History:
 *      [ Author             Date       Version     Content ]
 *        peigen        2008-07-29     V0.1        create
 *
 */
public class BaseDataService extends BaseService {

	/**
	 * 实例化baseDataDao
	 */
	BaseDataDao baseDataDao;
	
	/**
	 * 根据BaseData获取BaseDataList的列表
	 * @param baseData
	 * @return
	 */
	public List<BaseDataList> getBaseDataListList(Long baseDataId){
		return this.baseDataDao.BaseDataListList(baseDataId);
	}
	
	/**
	 * 根据TypeName查询BaseData
	 * @param String
	 * @return
	 */
	public List<BaseDataList> getBaseDataByTypeName(String typeName){
		return (List<BaseDataList>)this.baseDataDao.getBaseDataByTypeName(typeName);
	}
	
	public BaseDataDao getBaseDataDao() {
		return baseDataDao;
	}
	public void setBaseDataDao(BaseDataDao baseDataDao) {
		this.baseDataDao = baseDataDao;
	}
}
